package com.aop.demo.test;

import com.aop.demo.annotation.AopLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zlj
 */
@RestController
public class MockController {

    @AopLog("测试方法abc")
    @GetMapping(value = "/test/abc")
    public String test(@RequestParam("nickname") String nickname,
                       @RequestParam("age") Integer age) {
        return String.format("nickname:%s, age:%s", nickname, age);
    }

}
